<%@ page language="java" import="java.util.List" pageEncoding="UTF-8"%>
<%@ page import= "com.roadmap.struts.action.ActionConst"%>
<%@ page import="com.roadmap.common.RdcResourceBundle" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String user_ssn_id = (String)request.getSession().getAttribute(ActionConst.Aspirant_Id_In_Session);
String user_req_id = (String)request.getParameter(ActionConst.Aspirant_Id_In_Request);
if(user_req_id == null){
	user_req_id = user_ssn_id;
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/> 
<link href="res/css/layout.css" rel="stylesheet" type="text/css" media="all" />
<link href="res/css/life.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="res/js/util.js"></script>
<script type="text/javascript" src="res/js/func.js"></script>
<title><bean:write name="<%=ActionConst.Aspirant_Name_In_Request %>"/>的所有目标 | <%=RdcResourceBundle.COMPANY_NAME %></title>
</head>

<body id="container">
	<jsp:include page="/admin/myheader.jsp"></jsp:include>
	
	<!-- main body -->
	<div class="mainbody"><div class="manager">
	<jsp:include page="/admin/life/nav_btns.jsp"/>
			
		<!-- middle part: content -->
		<div class="middle-part">
			<div class="section">
				<div class="title-sp">
					<a href="aspirant.do?uid=<%=user_req_id %>"><bean:write name="<%=ActionConst.Aspirant_Name_In_Request %>"/></a>
					<span class="doubleGreat">&gt;&gt;</span>
					所有目标
				</div>
				
				<logic:present name="<%=ActionConst.Visitor_Is_Owner %>">
					<div style="float:right;"><a class="linkBtn" href="goal.do?act=create">创建新目标</a></div>
				</logic:present>
			</div>
		
			<div class="section">
				<logic:notPresent name="goals"><span class="prompt-message">该用户没有目标</span></logic:notPresent>
				<logic:present name="goals">
					<logic:iterate id="goal" name="goals">
						<bean:define id="gid" name="goal" property="id"/>
						<div class="article" style="border-bottom:none;">
							<div class="title">
								<div><a href="goal.do?act=view&uid=<%=user_req_id %>&id=<%=gid %>"><span class="title-text"><bean:write name="goal" property="name"/></span></a></div>
								<div class="tstamp">
									预定实现日期是<b><bean:write format="yyyy-MM-dd" name="goal" property="scheduledEndDate"/></b>,
									优先级<b><bean:write name="goal" property="priorityDesc"/></b>, 
									<b><bean:write name="goal" property="statusDesc"/></b>, 
									创建于<b><bean:write format="yyyy-MM-dd HH:mm:ss" name="goal" property="createdTime"/></b>
								</div>
							</div>
							
							<div class="content"><bean:write name="goal" property="content"/></div>
						</div>
					</logic:iterate>
				</logic:present>
			</div>
			<jsp:include page="/pagelet/pagingBarPagelet.jsp"/>
	</div>
	
	<!-- right part: -->
	<div class="right-part">
	</div>
	
	</div>
	
	<div class="clear-div"></div>
	</div>
	
	<jsp:include page="/res/jsp/footer.jsp"></jsp:include>

</body>

</html>
